package com.java.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.java.pojo.entity.Borrower;
import com.baomidou.mybatisplus.extension.service.IService;
import com.java.pojo.vo.BorrowerAproveVo;
import com.java.pojo.vo.BorrowerDetailVo;
import com.java.pojo.vo.BorrowerInfoVo;
import com.java.pojo.vo.BorrowerVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author Helen
 * @since 2021-07-08
 */
public interface BorrowerService extends IService<Borrower> {

    void saveBorrowerByUserId(BorrowerVo borrowerVo, Long userId);

    Integer getStatus(Long userId);

    IPage selectPage(Integer pageNum, Integer pageSize, String keywords);

    BorrowerDetailVo getBorrowerDetail(Long userId);

    void approve(BorrowerAproveVo borrowerAproveVo);

    Map<String, Object> show(Long id);
}
